# @Time : 2020/7/21 10:17
# @Author : Fioman 
# @Phone : 13149920693

filename = "2020-07-21_debug.txt"
keepRes = "res1.txt"
res = []
with open(filename,encoding='utf-8') as f:
    while True:
        strFinded = ""
        line = f.readline()
        if len(line) <= 0:
            break

        if "第一块偏:" in line:
            lineFinded = line.split(":")[5:10]

            for data in lineFinded:
                strFinded += data.split(",")[0] + "  "
            res.append(strFinded)

with open("res.txt","w") as f:
    f.write("前角 后角 总偏差 第一块 第二块 \n")
    for data in res:
        f.write(data)
        f.write("\n")








